class A(object):
    def __init__(self) -> None:
        self.self_print()

    def self_print(self):
        print('from A')

class B(A):
    def __init__(self) -> None:
        super().__init__()

    def self_print(self):
        print('from B')

class_b = B()